package com.sky.quartz.task;

import org.springframework.stereotype.Component;

import java.time.DateTimeException;
import java.util.Date;

@Component
public class MyTask {
    public static void showTime() {
        System.out.println("定时任务开始执行，输出系统当前时间："+ new Date());

    }
}
